package org.dromara.xxmj.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 习题提交数据传输对象
 *
 * @author Vincent
 */
@Data
@Schema(description = "习题提交数据传输对象")
public class SimulationSubmitDTO {

    /**
     * 课程ID
     */
    @Schema(description = "课程ID")
    @NotNull(message = "课程ID不能为空")
    private Long courseId;

    /**
     * 试卷ID
     */
    @Schema(description = "试卷ID")
    @NotNull(message = "试卷ID不能为空")
    private Long simulationId;

    /**
     * 考试时间
     */
    @Schema(description = "考试所用时间")
    @NotNull(message = "考试所用时间")
    private Integer examSpentTime ;

    /**
     * 答题信息
     */
    @Schema(description = "答题信息")
    @NotEmpty(message = "答题信息不能为空")
    @Valid
    private List<ExerciseSubmitDto> answerInfo;

}
